/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.javanile.me.chessengine;

/**
 *
 * @author cicciodarkast
 */
public class MovesLoop {
	
	private Moves ms;
	private int index;
	
	public MovesLoop(Moves moves) {
		ms = moves;
		index = -1;
	}
	
	public boolean next() {
		index++;
		return index<ms.size();
	}
	
	public Move move() {
		return ms.at(index);
	}
}
